from ronglian_sms_sdk import SmsSDK

from Qshop.settings import accId, accToken, appId


def send_code(code, timer='5'):
    sdk = SmsSDK(accId, accToken, appId)
    tid = '1'
    mobile = '17340796719'
    datas = (code, timer)
    resp = sdk.sendMessage(tid, mobile, datas)
    print(resp)


if __name__ == '__main__':
    send_code('6688')



